import request from '@/utils/request'
const baseUrl = '/mall/sell'

export function getSellPage (params) {
  return request({
    url: `${baseUrl}/getAll/${params.pageNum}/${params.pageSize}`,
    method: 'get',
    params: params
  })
}


export function saveSell (data) {
  return request({
    url: `${baseUrl}`,
    method: 'post',
    data: data
  })
}

export function updateSell (data) {
  return request({
    url: `${baseUrl}`,
    method: 'put',
    data: data
  })
}


export function deleteSell (id) {
  return request({
    url: `${baseUrl}/${id}`,
    method: 'delete',
  })
}
